import decimal

# Units are in their own module here, so that they can keep this
# formatting, as this module is excluded from black in pyproject.toml
# fmt: off
units = {
    'wei': decimal.Decimal('1'),  # noqa: E241
    'kwei': decimal.Decimal('1000'),  # noqa: E241
    'babbage': decimal.Decimal('1000'),  # noqa: E241
    'femtoether': decimal.Decimal('1000'),  # noqa: E241
    'mwei': decimal.Decimal('1000000'),  # noqa: E241
    'lovelace': decimal.Decimal('1000000'),  # noqa: E241
    'picoether': decimal.Decimal('1000000'),  # noqa: E241
    'gwei': decimal.Decimal('1000000000'),  # noqa: E241
    'shannon': decimal.Decimal('1000000000'),  # noqa: E241
    'nanoether': decimal.Decimal('1000000000'),  # noqa: E241
    'nano': decimal.Decimal('1000000000'),  # noqa: E241
    'szabo': decimal.Decimal('1000000000000'),  # noqa: E241
    'microether': decimal.Decimal('1000000000000'),  # noqa: E241
    'micro': decimal.Decimal('1000000000000'),  # noqa: E241
    'finney': decimal.Decimal('1000000000000000'),  # noqa: E241
    'milliether': decimal.Decimal('1000000000000000'),  # noqa: E241
    'milli': decimal.Decimal('1000000000000000'),  # noqa: E241
    'ether': decimal.Decimal('1000000000000000000'),  # noqa: E241
    'kether': decimal.Decimal('1000000000000000000000'),  # noqa: E241
    'grand': decimal.Decimal('1000000000000000000000'),  # noqa: E241
    'mether': decimal.Decimal('1000000000000000000000000'),  # noqa: E241
    'gether': decimal.Decimal('1000000000000000000000000000'),  # noqa: E241
    'tether': decimal.Decimal('1000000000000000000000000000000'),  # noqa: E241
}
# fmt: on
